package StringTest;

public class Test7 {
    public static void main(String[] args) {
        String s1="123";
        String s2="12";
        char []arr1=s1.toCharArray();
        char []arr2=s2.toCharArray();
        int num1=0;
        for(int i=0;i<arr1.length;i++){
            char c=s1.charAt(i);
          num1=num1*10+c-'0';
        }
        int num2=0;
        for(int i=0;i<arr2.length;i++){
            char c=s2.charAt(i);
            num2=num2*10+c-'0';
        }
        int mul=num1*num2;
      String mulStr=""+mul;
      System.out.println(mulStr);
    }
}
